{template 'common/header'}
<div class="main">
<ul class="nav nav-tabs">
  <li{if $_GPC['do'] == 'buildlists'} class="active"{/if}><a href="{php echo $this->createWeburl('buildlists');}">楼盘管理</a>
  </li>
  <li{if $_GPC['do'] == 'houselist'} class="active"{/if}><a href="{php echo $this->createWeburl('houselist', array('hid'=>$hid));}">户型管理</a>
  </li>
  <li{if $_GPC['do'] == 'fullviewlist'} class="active"{/if}><a href="{php echo $this->createWeburl('fullviewlist',array('hsid'=>$hsid,'hid'=>$hid));}">全景管理</a>
  </li>
  <li{if $_GPC['do'] == 'fullviewadd'} class="active"{/if}><a href="{php echo $this->createWeburl('fullviewadd', array('hsid'=>$hsid,'hid'=>$hid,'id'=>$id));}">添加全景</a>
  </li>
</ul>
<div class="main">
  <form action="" class="form-horizontal form" method="post" enctype="multipart/form-data">
    <input type="hidden" name="hid" value="{$hid}">
    <input type="hidden" name="id" value="{$id}">
    <div class="panel panel-default">
      <div class="panel-heading"> 全景图设置 </div>
      <div class="panel-body">
        <div class="form-group">
          <label class="col-xs-12 col-sm-3 col-md-2 control-label">标题：</label>
          <div class="col-xs-12 col-sm-9">
            <input type="text" class="form-control" placeholder="" name="title" value="{$item['title']}" />
          </div>
        </div>
        <div class="form-group">
          <label class="col-xs-12 col-sm-3 col-md-2 control-label">显示顺序：</label>
          <div class="col-xs-12 col-sm-9">
            <input type="text" class="form-control" placeholder="" name="sort" value="{$item['sort']}" />
          </div>
        </div>
        <div class="form-group">
          <label class="col-xs-12 col-sm-3 col-md-2 control-label">全景外链：</label>
          <div class="col-xs-12 col-sm-9">
            <input type="text" class="form-control" placeholder="" name="quanjinglink" value="{$item['quanjinglink']}" />
          </div>
        </div>
        <div class="form-group">
          <label class="col-xs-12 col-sm-3 col-md-2 control-label">是否显示：</label>
          <div class="col-xs-12 col-sm-9"> {php echo $this->tplRadionSelect('status',array('1'=>'是','0'=>'否'),$item['status'])} </div>
        </div>
        <div class="form-group">
          <label class="col-xs-12 col-sm-3 col-md-2 control-label">相册图片-前：</label>
          <div class="col-xs-12 col-sm-9"> {php echo tpl_form_field_image('pic_qian',$this->getdefaultfullviewpic(1,$item['pic_qian']))} </div>
        </div>
        <div class="form-group">
          <label class="col-xs-12 col-sm-3 col-md-2 control-label">相册图片-右：</label>
          <div class="col-xs-12 col-sm-9"> {php echo tpl_form_field_image('pic_you',$this->getdefaultfullviewpic(4,$item['pic_you']))} </div>
        </div>
        <div class="form-group">
          <label class="col-xs-12 col-sm-3 col-md-2 control-label">相册图片-后：</label>
          <div class="col-xs-12 col-sm-9"> {php echo tpl_form_field_image('pic_hou',$this->getdefaultfullviewpic(2,$item['pic_hou']))} </div>
        </div>
        <div class="form-group">
          <label class="col-xs-12 col-sm-3 col-md-2 control-label">相册图片-左：</label>
          <div class="col-xs-12 col-sm-9"> {php echo tpl_form_field_image('pic_zuo',$this->getdefaultfullviewpic(3,$item['pic_zuo']))} </div>
        </div>
        <div class="form-group">
          <label class="col-xs-12 col-sm-3 col-md-2 control-label">相册图片-上：</label>
          <div class="col-xs-12 col-sm-9"> {php echo tpl_form_field_image('pic_shang',$this->getdefaultfullviewpic(5,$item['pic_shang']))} </div>
        </div>
        <div class="form-group">
          <label class="col-xs-12 col-sm-3 col-md-2 control-label">相册图片-下：</label>
          <div class="col-xs-12 col-sm-9"> {php echo tpl_form_field_image('pic_xia',$this->getdefaultfullviewpic(6,$item['pic_xia']))} </div>
        </div>
        <div class="form-group">
          <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
          <div class="col-sm-4">
            <input type="hidden" name="id" value="{$item[id]}">
            <input type="hidden" name="token" value="{$_W['token']}" />
            <input name="submit" type="submit" value="提交" class="btn btn-primary span3" />
          </div>
        </div>
      </div>
    </div>
  </form>
</div>
{template 'common/footer'}